import os

def mkdirs(path, num):
    for item in range(1, num + 1):
       os.mkdir(path + '\\' + str(item))

path = './newdir'

if not os.path.exists(path):
    os.mkdir(path)

num = eval(input('请输入创建的文件夹数量:'))

mkdirs(path, num)